var dayOfTheWeek = function(day, month, year) {
    console.log(Date.parse(`${year}/${month}/${day}`))
    const date = new Date(Date.parse(`${year}/${month}/${day}`)); //ES6中的字符
    const Week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
    return Week[date.getDay()];
};

let time = dayOfTheWeek(31,8,2021)
console.log(time)
